package com.qq.employee.service;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qq.employee.dao.EmployeeMapper;
import com.qq.employee.utity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {
   @Autowired
    public EmployeeMapper employeeMapper;

    public Employee selectStaffByEmployeeId(){
        return employeeMapper.selectStaffByEmployeeId(1);
    }

    public List<Employee> listEmp(){

        return employeeMapper.listEmp();
  }



    public int insertEmployee(Employee employee){
        return employeeMapper.insertEmployee(employee);
    }

    public int updateEmployee(Employee employee) {
        return employeeMapper.updateEmployee(employee);
    }
    public int deleteEmployee(int id) {
        return employeeMapper.deleteEmployee(id);
    }
    public  Employee get(int id){return  employeeMapper.get(id);}

}
